package jp.co.sn.mml.pojo.tduketkd;


public class TduketkdId implements java.io.Serializable { 

	//受付日
	private Long ukeYmd;
	//バッチ番号
	private Long btNo;
	//通し番号
	private Long btSeq;
	//項目コード
	private String itemCd;

	/** default constructor */
	public TduketkdId(){

	}

	/** full constructor */
	public TduketkdId(Long ukeYmd,Long btNo,Long btSeq
			,String itemCd){
		this.ukeYmd = ukeYmd;
		this.btNo = btNo;
		this.btSeq = btSeq;
		this.itemCd = itemCd;
	}

	//Property accessors
	public Long getUkeYmd(){
		return this.ukeYmd;
	}

	public void setUkeYmd(Long ukeYmd){
		this.ukeYmd=ukeYmd;
	}

	public Long getBtNo(){
		return this.btNo;
	}

	public void setBtNo(Long btNo){
		this.btNo=btNo;
	}

	public Long getBtSeq(){
		return this.btSeq;
	}

	public void setBtSeq(Long btSeq){
		this.btSeq=btSeq;
	}

	public String getItemCd(){
		return this.itemCd;
	}

	public void setItemCd(String itemCd){
		this.itemCd=itemCd;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TduketkdId))
			return false;

		TduketkdId castOther = (TduketkdId) other;

		return ((this.getUkeYmd() ==  castOther.getUkeYmd())
				||(this.getUkeYmd()!=null && castOther.getUkeYmd() !=null 
					&& castOther.getUkeYmd() !=null 
					&& this.getUkeYmd().equals(castOther.getUkeYmd())))
			&& ((this.getBtNo() ==  castOther.getBtNo())
				||(this.getBtNo()!=null && castOther.getBtNo() !=null 
					&& castOther.getBtNo() !=null 
					&& this.getBtNo().equals(castOther.getBtNo())))
			&& ((this.getBtSeq() ==  castOther.getBtSeq())
				||(this.getBtSeq()!=null && castOther.getBtSeq() !=null 
					&& castOther.getBtSeq() !=null 
					&& this.getBtSeq().equals(castOther.getBtSeq())))
			&& ((this.getItemCd() ==  castOther.getItemCd())
				||(this.getItemCd()!=null && castOther.getItemCd() !=null 
					&& castOther.getItemCd() !=null 
					&& this.getItemCd().equals(castOther.getItemCd())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUkeYmd() == null ? 0 : this.getUkeYmd().hashCode());
		result = 37 * result
				+ (getBtNo() == null ? 0 : this.getBtNo().hashCode());
		result = 37 * result
				+ (getBtSeq() == null ? 0 : this.getBtSeq().hashCode());
		result = 37 * result
				+ (getItemCd() == null ? 0 : this.getItemCd().hashCode());
		return result;
	}

}